package com.uton.rfidcontroller.common;

/**
 * Created by 王家宝 on 2017/8/31.
 * Email:639586819@qq.com
 * Tel:18241150668
 */

public class GlobalConstants {
    /**
     * common
     */
    //一次加载5条
    public static final int PAGE_SIZE = 5;

    public static final String EXTRA_INT_PARAM1 = "extraIntParam1";
    public static final String EXTRA_INT_PARAM2 = "extraIntParam2";
    public static final String EXTRA_INT_PARAM3 = "extraIntParam3";
    public static final String EXTRA_INT_PARAM4 = "extraIntParam4";
    public static final String EXTRA_INT_PARAM5 = "extraIntParam5";

    public static final String EXTRA_STRING_PARAM1 = "extraStringParam1";
    public static final String EXTRA_STRING_PARAM2 = "extraStringParam2";
    public static final String EXTRA_STRING_PARAM3 = "extraStringParam3";
    public static final String EXTRA_STRING_PARAM4 = "extraStringParam4";
    public static final String EXTRA_STRING_PARAM5 = "extraStringParam5";

    public static final String LOCKED = "locked";
    public static final String UNLOCKED = "unlocked";

    public static final String IS_WRITE_IN_SUCCESS = "IS_WRITE_IN_SUCCESS";

    //未检
    public static final int SCAN_NOT = 0;
    //已检
    public static final int SCAN_ALREADY = 1;
    //异常
    public static final int SCAN_ERROR = 2;


    //Token
    public static final String TOKEN = "token";
    //空Token
    public static final int EMPTY_TOKEN_LENGTH = 0;

    //User ID
    public static final String USER_ID = "userId";

    //已巡检
    public static final int HAS_PATROL = 2;
    //未巡检
    public static final int NO_PATROL = 1;


    /**
     * Handler 返回码 0x100
     */
    public static final int CODE_COMPLETE = 0x100;
    public static final int CODE_FILED = 0x101;

    /**
     * net state  0x200
     */
    public static final int NET_OK = 0x200;
    public static final int NET_ERROR = 0x201;
    public static final int NET_OK_FINISH = 0x202;


    /**
     * RFID相关 0x1
     */
    public static final int MSG_SHOW_PROPERTIES = 0x11;
    public static final int MSG_CLOSE_SCAN = 0x12;
    public static final int RFID_READ = 0x13;
    public static final int RFID_WRITE = 0x14;
    public static final int RFID_NOTHING = 0x15;


    /**
     * 请求码系列 0x2
     */
    public static final int REQUEST_WANT_DATA = 0x21;
    public static final int REQUEST_WANT_REFRESH = 0x22;

    /**
     * 结果码系列 0x3
     */
    public static final int RESULT_CANCEL = 0x31;
    public static final int RESULT_COMPLETE = 0x32;
    public static final int RESULT_SAVE_RET = 0x33;
    public static final int RESULT_COMMIT_SUCCESS = 0x34;
    public static final int RESULT_IS_WRITE_SUCCESS = 0x35;


}
